<?php
namespace app\api\controller;

use app\common\controller\CommonBase;
use think\App;

/**
 * Api 父类
 */
class ApiBase extends CommonBase
{

    /**
     * @var object|string
     */
    public $member;
    public $id = 0;
    public function __construct(App $app = null)
    {
        web_is_open();
        $this->member = isset(app()->member) ? app()->member :'';

        if ($this->member) {
            $this->id = $this->member['id'];

        }
        parent::__construct($app);
    }


}
